<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property int $userid 用户ID
 * @property int $direction 方向 1-支出 2-收入
 * @property int $typeid 类型ID
 * @property string $typename 类型名称
 * @property int $amount 金额
 * @property int $balance 变动后余额
 * @property string $extend 扩展数据
 * @property string $remark 备注
 * @property int $add_time 变动时间
 */
class UserAccount extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'user_account';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'userid', 'direction', 'typeid', 'typename', 'amount', 'balance', 'extend', 'remark', 'add_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'userid' => 'integer', 'direction' => 'integer', 'typeid' => 'integer', 'amount' => 'integer', 'balance' => 'integer', 'add_time' => 'integer'];
}
